package com.study.controller;

import com.study.entity.PageBean;
import com.study.entity.Result;
import com.study.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/log")
public class OperatorLogController {
    @Autowired
    private OperateLogService operateLogService;
    @GetMapping("/page")
    public Result opLog(Integer page,Integer pageSize){
        PageBean pb = operateLogService.opLog(page,pageSize);
        return Result.success(pb);
    }
}
